Why aren't changes to the array and variables in the Resize method reflecting in the main program